Skip to content

perf(ui): smooth attach-return main menu refresh#582

Open
aaronflorey wants to merge 1 commit intoasheshgoplani:mainfrom
aaronflorey:perf/attach-return-main-menu
Open

perf(ui): smooth attach-return main menu refresh#582
aaronflorey wants to merge 1 commit intoasheshgoplani:mainfrom
aaronflorey:perf/attach-return-main-menu

Conversation

@aaronflorey
Copy link
Copy Markdown
Contributor

Summary

  • preserve the selected session or window across attach-return list rebuilds so the preview target stays stable when returning to the main menu
  • defer the tmux cache refresh and suppress immediate preview refreshes after tea.Exec returns to avoid the burst of work that made the menu feel frozen
  • add focused UI regressions for attach-return selection restore, notification-bar switching, and preview grace handling

Testing

  • go test ./internal/ui
  • make test (currently fails in existing unrelated suites under internal/integration, internal/session, internal/tmux, and internal/tuitest on this branch)

Preserve the selected item across attach-return rebuilds and delay the tmux cache refresh briefly after tea.Exec returns.

Suppress preview refreshes during the same grace period so returning to the main menu does not trigger the burst of status and preview work that made the UI feel frozen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant